<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="logisticsTemplate.xhtml">

    <ui:define name="contentLogistics">
        <br/>
        <br/>
        <br/>
       
        <p:tabView>
            <p:tab title="Devices On Storage">
        <h1>List Devices On Storage</h1>
           <p:dataTable var="device" value="#{listDevicesOnStorage.devicesOnStorage}"  paginator="true" rows="10">
            <p:column>
                <f:facet name="header">
                    <h:outputText value="ID"/>
                </f:facet>
                <h:outputText value="#{device.id}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Type"/>
                </f:facet>
                <h:outputText value="#{device.model.modelType.type}"/>
            </p:column>

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Model"/>
                </f:facet>
                <h:outputText value="#{device.model.type}"/>
            </p:column>
          </p:dataTable>
            </p:tab>
        </p:tabView>
    </ui:define>

</ui:composition>